<?php
Yii::app()->clientScript->registerScript('search', "
$('.search-form form').submit(function(){
	$.fn.yiiGridView.update('users-model-grid', {
		data: $(this).serialize()
	});
	return false;
});
");

Yii::app()->clientScript->registerScript('ajaxupdate', "
$('#users-model-grid a.ajaxupdate').click(function() {
    $.fn.yiiGridView.update('users-model-grid', {
        type: 'POST',
        url: $(this).attr('href'),
        success: function() {
            $.fn.yiiGridView.update('users-model-grid');
        }
    });
    return false;
});
");
?>
<div class="search-form">
    <?php $form=$this->beginWidget('CActiveForm', array(
            'action'=>Yii::app()->createUrl($this->route),
            'method'=>'get',
    )); ?>

    <div class="row">
            <div class="dataTables_filter" id="sample-table-2_filter">
               <label>
                   <?php echo $form->textField($model,'email',array('size'=>47,'maxlength'=>250)); ?>
                   <input style="margin-top:-8px;" type="submit" class="btn bigl btn-primary"  value="Tìm" />
               </label>
           </div>

    <?php $this->endWidget(); ?>
</div><!-- search-form -->